package com.dreem.bridge;

/**
 * @program: DesignParrtern
 * @description: 手机抽象类
 * @author: Peng
 * @create: 2021-02-08  10:22
 **/
public abstract class Phone {
    private Brand brand;

    public Phone(Brand brand) {
        this.brand = brand;
    }

    public void open(){
        this.brand.open();
    }

    public void call(){
        this.brand.call();
    }

    public void close(){
        this.brand.close();
    }
}
